package cn.com.cis.web.actions;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.servlet.ModelAndView;

@Controller
@RequestMapping(value = "/encryptSQL")
public class EncryptSQLMaker {

	private void setNavigateBar(ModelAndView mv) {
		mv.addObject("icon", "icon-list");
		mv.addObject("title", "分割任务监控");
	}

	@RequestMapping(value = "/make", method = RequestMethod.GET)
	public ModelAndView make() {
		ModelAndView mView = new ModelAndView("encryptSQL/make");
		setNavigateBar(mView);

		return mView;
	}
	
	@RequestMapping(value = "/sqlExecutor", method = RequestMethod.GET)
	public ModelAndView sqlExecutor() {
		ModelAndView mView = new ModelAndView("encryptSQL/sqlExecutor");
		setNavigateBar(mView);

		return mView;
	}

}
